﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Web
{
    public partial class check : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string checkcode = Commons.CodeImage.GetCode(4);
            Session["web_login_checkcode"] = checkcode;
            Response.Clear();
            Response.ExpiresAbsolute = System.DateTime.Now.AddDays(-1);
            Response.Expires = 0;
            Response.CacheControl = "no-cache";
            Response.ContentType = "image/GIF";
            Response.BinaryWrite(Commons.CodeImage.GetImage(checkcode).ToArray());
        }
    }
}